<template>
	<slot v-if="thenInject" :result="thenInject"></slot>
</template>

<script lang="ts" setup>
import { inject, computed } from "vue";
import { promiseInjectionKey } from "../help";

const promise = inject(promiseInjectionKey);

const thenInject = computed(() => promise?.result);
</script>
